namespace Users {
    	using System;
    	
    	
    	/// <summary>
    	/// 表名：uc_UserSetting 主键列：K
    	/// </summary>
    	[SerializableAttribute()]
    	public partial class _UserSetting : MySoft.Data.Entity {
    		
    		protected String _K;
    		
    		protected String _V;
    		
    		/// <summary>
    		/// 键
    		/// </summary>
    		public String K {
    			get {
    				return this._K;
    			}
    			set {
    				this.OnPropertyValueChange(_.K, _K, value);
    				this._K = value;
    			}
    		}
    		
    		/// <summary>
    		/// 值
    		/// </summary>
    		public String V {
    			get {
    				return this._V;
    			}
    			set {
    				this.OnPropertyValueChange(_.V, _V, value);
    				this._V = value;
    			}
    		}
    		
    		/// <summary>
    		/// 获取实体对应的表名
    		/// </summary>
    		protected override MySoft.Data.Table GetTable() {
    			return new MySoft.Data.Table<_UserSetting>("uc_UserSetting");
    		}
    		
    		/// <summary>
    		/// 获取实体中的主键列
    		/// </summary>
    		protected override MySoft.Data.Field[] GetPrimaryKeyFields() {
    			return new MySoft.Data.Field[] {
    					_.K};
    		}
    		
    		/// <summary>
    		/// 获取列信息
    		/// </summary>
    		protected override MySoft.Data.Field[] GetFields() {
    			return new MySoft.Data.Field[] {
    					_.K,
    					_.V};
    		}
    		
    		/// <summary>
    		/// 获取列数据
    		/// </summary>
    		protected override object[] GetValues() {
    			return new object[] {
    					this._K,
    					this._V};
    		}
    		
    		/// <summary>
    		/// 给当前实体赋值
    		/// </summary>
    		protected override void SetValues(MySoft.Data.IRowReader reader) {
    			if ((false == reader.IsDBNull(_.K))) {
    				this._K = reader.GetString(_.K);
    			}
    			if ((false == reader.IsDBNull(_.V))) {
    				this._V = reader.GetString(_.V);
    			}
    		}
    		
    		public override int GetHashCode() {
    			return base.GetHashCode();
    		}
    		
    		public override bool Equals(object obj) {
    			if ((obj == null)) {
    				return false;
    			}
    			if ((false == typeof(_UserSetting).IsAssignableFrom(obj.GetType()))) {
    				return false;
    			}
    			if ((((object)(this)) == ((object)(obj)))) {
    				return true;
    			}
    			return false;
    		}
    		
    		public class _ {
    			
    			/// <summary>
    			/// 表示选择所有列，与*等同
    			/// </summary>
    			public static MySoft.Data.AllField All = new MySoft.Data.AllField<_UserSetting>();
    			
    			/// <summary>
    			/// 键 - 字段名：K - 数据类型：String
    			/// </summary>
    			public static MySoft.Data.Field K = new MySoft.Data.Field<_UserSetting>("K");
    			
    			/// <summary>
    			/// 值 - 字段名：V - 数据类型：String
    			/// </summary>
    			public static MySoft.Data.Field V = new MySoft.Data.Field<_UserSetting>("V");
    		}
    	}
    }
    